package com.felix.test;

import com.g3net.tool.HttpUtils;

public class Jing {
	public static final String URL="http://item.jd.com/";
	public static int NUM=207960;
	
	
	public static class MyThread extends Thread {
		@Override
		public void run() {
			while (true) {
				try {
					if (NUM>907960) {
						NUM=207960;
					}
					NUM++;
					sleep(5000);
					HttpUtils.get(URL+NUM+".html","utf-8");
					System.out.println("OK");
					
				} catch (Exception e) {
					System.out.println("error");
				}
			}
		}
		
	}
	public static void main(String[] args) {
		System.out.println("开始....");
		for(int i=0;i<100;i++){
			new MyThread().start();
		}
		System.out.println("退出....");
		
	}

}


